﻿
using System.Collections;
using System.Collections.Generic;
using MiserBlogHelper.Helper;

namespace MiserBlogMVC.Models.DataHelper
{
    public class ManageArticlePage : IGetPage
    {

        public object GetPage<T>(HttpContextHelper context) where T : class
        {

            if (context.Context.User.Identity is UserVIPIdentity)
            {
                UserVIPIdentity indentity = (UserVIPIdentity)context.Context.User.Identity;
                MiserDB.DataHelp.QueryHelper dataHelp = new MiserDB.DataHelp.QueryHelper();
                IList<T> list = dataHelp.GetSelfPage<T>(indentity.Person.Id, context); //dataHelp.GetPage<T>(parmDic, context);
                return list;
            }
            return null;
        }

      
    }
}